package com.alex.sporttraining;

import java.util.ArrayList;

public class Sport {
	private int id;
	private String nom;
	private ArrayList<Seance> lesSeances;
	
	public Sport(int id, String nom){
		this.id = id;
		this.nom = nom;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public ArrayList<Seance> getLesSeances() {
		return lesSeances;
	}

	public void setLesSeances(ArrayList<Seance> lesSeances) {
		this.lesSeances = lesSeances;
	}
	
	public void ajoutSeance(Seance s){
		lesSeances.add(s);
	}
	
	
}
